package com.asking.dao;

import com.asking.domain.Question;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@org.apache.ibatis.annotations.Mapper
public interface QuestionMapper extends Mapper<Question> {
    @Select("SELECT * FROM `question` WHERE DATE_SUB(CURDATE(), INTERVAL 8 DAY) <= DATE(`time`) ORDER  BY hot DESC")
    public List<Question>    findHot();
}
